package com.ww.scm.valueObject.grid;

import java.util.ArrayList;
import java.util.List;


public class DataRow {
	
    private String id;
    private List<Cell> fixCells;
    private List<Cell> activeCells;
    
    public DataRow()
    {
    	fixCells = new ArrayList<Cell>();
    	activeCells = new ArrayList<Cell>();
    }

    public void addFixCell(String colName,String rowspan,String colspan,String style){
    	Cell colCell = new Cell();
		colCell.setValue0(colName);
		colCell.setRowspan(rowspan);
		colCell.setColspan(colspan);
		colCell.setValue1(style);
		fixCells.add(colCell);

    };
    
    public void addActiveCell(String colName,String rowspan,String colspan,String style){
    	Cell colCell = new Cell();
		colCell.setValue0(colName);
		colCell.setRowspan(rowspan);
		colCell.setColspan(colspan);
		colCell.setValue1(style);
		activeCells.add(colCell);

    }
    
    public void addActiveCell(String colName,String colspan,String style){
    	addActiveCell(colName,"",colspan,style);
    }
    
    public void addActiveCell(String colName,String style){
    	addActiveCell(colName,"","",style);
    }

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public List<Cell> getFixCells() {
		return fixCells;
	}

	public void setFixCells(List<Cell> fixCells) {
		this.fixCells = fixCells;
	}

	public List<Cell> getActiveCells() {
		return activeCells;
	}

	public void setActiveCells(List<Cell> activeCells) {
		this.activeCells = activeCells;
	};
    
    

	
}
